

import 'package:baby/UI/Widgets/HtmlContent/HtmlContent.dart';
import 'package:baby/UI/Widgets/HtmlContent/TransformUnit.dart';
import 'package:flutter/material.dart' as prefix0;
import 'package:html/dom.dart';

class TagDiv extends TransformUnit<HtmlContentState, Object> {
  @override
  void execution(HtmlContentState context, Object data) {
  	if (data is Element && data.localName == "div"){
  		var nodes = data.nodes;
  		var widgets = <prefix0.Widget>[];
  		nodes.forEach((node){
  			var widget = pipeLineContext.process(node);
  			if (widget is prefix0.Widget){
  				widgets.add(widget);
				}
			});
  		var container = prefix0.Container(
				child: prefix0.Column(
					mainAxisSize: prefix0.MainAxisSize.min,
					crossAxisAlignment: prefix0.CrossAxisAlignment.start,
					children: widgets,
				),
			);

  		pipeLineContext.processWith(container);
		}
  }
}
